package com.rjgc.title.model.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rjgc.title.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 *  现任职称
 * @program: title-parent
 * @author: Mr.Zhuo
 * @create: 2022-04-25 11:05
 **/
@Data
@ApiModel(description = "CurrentTitle")
@TableName("current_title")
public class CurrentTitle extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "系列")
    @TableField("series")
    private String series;

    @ApiModelProperty(value = "专业")
    @TableField("major")
    private String major;

    @ApiModelProperty(value = "级别")
    @TableField("level")
    private String level;

    @ApiModelProperty(value = "职称")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "职称取得时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("acquisition_time")
    private Date acquisitionTime;

    @ApiModelProperty(value = "证书编号")
    @TableField("certificate_no")
    private String certificateNo;

    @ApiModelProperty(value = "证书扫描件")
    @TableField("scanned_certificate")
    private String scannedCertificate;

    @ApiModelProperty(value = "职称聘任时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("appointment_time")
    private Date appointmentTime;

    @ApiModelProperty(value = "聘书扫描件")
    @TableField("scanned_employment")
    private String scannedEmployment;

    @ApiModelProperty(value = "1为现任职称，2为其他职称")
    @TableField("flag")
    private String flag;

}
